package server.entity;

import java.util.Date;

//有图或无图评价
public class Evaluation {
    private Integer evaluationId;
    private Integer goodId;
    private Integer userId;
    private Integer star;//星级
    private String message;//评价内容
    private String pic;
    private Date date;

    public Integer getEvaluationId() {
        return evaluationId;
    }

    public void setEvaluationId(Integer evaluationId) {
        this.evaluationId = evaluationId;
    }

    public Integer getGoodId() {
        return goodId;
    }

    public void setGoodId(Integer goodId) {
        this.goodId = goodId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getStar() {
        return star;
    }

    public void setStar(Integer star) {
        this.star = star;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "Evaluation{" +
                "evaluationId=" + evaluationId +
                ", goodId=" + goodId +
                ", userId=" + userId +
                ", star=" + star +
                ", message='" + message + '\'' +
                ", pic='" + pic + '\'' +
                ", date=" + date +
                '}';
    }
}
